<div class="row">
  <div class="colxl-12 col-lg-12 col-md-12 col-sm-12 col-12">
    <div class="page-title-wrapper">
      <div class="page-title-box">
        <h4 class="page-title bold">添加用户</h4>
      </div>
      <div class="breadcrumb-list">
        <ul>
          <li class="breadcrumb-link">
            <a href="../public/userList.php?pagenow=<?=$_SESSION['userListPageNow']?>&searchvalue=<?=$_SESSION['userListSearchvalue'] ?>">
              <i class="fas fa-user-friends mr-2"></i>
              用户管理
            </a>
          </li>
          <li class="breadcrumb-link active"><i class="fas fa-user-plus mr-2"></i>添加用户</li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!-- Products view Start -->
<?=addUserShowTips($_SESSION['addUserShowTips'],$_SESSION['addUsertipsType']); ?>
<div class="row">
  <div class="offset-xl-2 col-xl-8">
    <div class="card"><grammarly-extension data-grammarly-shadow-root="true" style="position: absolute; top: 0px; left: 0px; pointer-events: none;" class="cGcvT"></grammarly-extension>
      <div class="card-header">
        <h4 class="card-title mb-0">新用户初始信息</h4>
      </div>
      <div class="card-body">
        <form action="./adduser.php?action=adduser" method="post">
          <input type="hidden" name="id" value="<?=$_SESSION['loginId'] ?>" >
          <div class="mb-3">
            <label class="form-label font-weight-bold">学号/工号</label>
            <input class="form-control" placeholder="请输入新用户 学号/工号(8位纯数字)" maxlength="8" name="adduid">
          </div>
          <div class="mb-3">
            <label class="form-label font-weight-bold">用户名</label>
            <input class="form-control" placeholder="请输入新用户 姓名(2~16位，只允许汉字，英文字母，数字，下划线)" name="adduname">
          </div>
          <div class="mb-3">
            <label class="form-label font-weight-bold">初始密码</label>
            <input class="form-control" type="password" placeholder="请输入初始密码(6~16位，只允许英文字母，数字，下划线)" name="addupwd">
          </div>
          <div class="mb-3">
            <label class="form-label font-weight-bold">确认初始密码</label>
            <input class="form-control" type="password" placeholder="请再次输入初始密码" name="addcomupwd">
          </div>
          <div class="mb-3">
            <label class="form-label font-weight-bold">性别</label>
            <select class="form-control btn-square" name="addusex">
              <?=sexSelect($sexArray,'保密') ?>
            </select>
          </div>
          <div class="mb-3">
            <label class="form-label font-weight-bold">等级</label>
            <select class="form-control btn-square" name="adduiden">
              <?=sexSelect($idenArray,'青铜会员') ?>
            </select>
          </div>
          <div class="form-footer text-right">
            <input type="submit" class="btn btn-primary squer-btn" value="添 加" >
            <input type="reset" class="btn btn-light squer-btn" value="重 置" >
          </div>
        </form>
      </div>
    </div>
  </div>
</div>